package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 课程教务代码Dto
 * Created by chenxin on 2014/12/9.
 */
public class CourseCodeDto {
    private Long id = Long.valueOf(0); //ID
    @NotNull
    @Length(min = 1, max = 30, message = "教务代码长度为1~30")
    private String code; //教务代码
    @NotNull
    @Min(value = 1, message = "课程ID不合法")
    private Long classId; //课程ID

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }
}
